package cn.tedu.boot.ers.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("管理员修改用户名DTO")
public class AdminUpdateNameDTO implements Serializable {
    @NotNull(message = "管理员id不能为空")
    @ApiModelProperty(value = "管理员id", name = "id", example = "1")
    private Long id;
    @NotNull(message = "管理员用户名不能为空")
    @ApiModelProperty(value = "管理员新的用户名", name = "name", example = "IAmBoss")
    private String name;
}
